#ifndef QAV_AUDIODECODER_H
#define QAV_AUDIODECODER_H

#include <QtAV/AVDecoder.h>

//TODO: decoder.in/outAudioFormat()?
namespace QtAV {

class AudioResampler;
class AudioDecoderPrivate;
class Q_AV_EXPORT AudioDecoder : public AVDecoder
{
    DPTR_DECLARE_PRIVATE(AudioDecoder)
public:
    AudioDecoder();
    virtual bool prepare();
    virtual bool decode(const QByteArray &encoded);
    AudioResampler *resampler();
    int undecodedSize() const;
};

} //namespace QtAV
#endif // QAV_AUDIODECODER_H
